﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Catalog.ascx.cs" Inherits="Shop.Web.Controls.Catalog" %>
<asp:Repeater runat="server" id="rprMain" OnItemDataBound="rprMain_ItemDataBound">
<HeaderTemplate>
<div>
</HeaderTemplate>
<ItemTemplate>
            <div class="vitr fleft border-bottom-blue">
            <a runat="server" id="editLink" visible="false" class="default-button ui-corner-all" style="position: absolute; z-index: 101;">Редактировать</a>
            <div style="height: 175px; vertical-align: bottom; display: table-cell;"><img runat="server" id="imgProduct"/></div>
            <div>
            <a href="Catalog.aspx?brandId=<%# DataBinder.Eval(Container.DataItem, "Brand.Id")%>"><%# DataBinder.Eval(Container.DataItem, "BrandName")%></a><br/>
            <b><a href="Product.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>"><%# DataBinder.Eval(Container.DataItem, "Name")%></a></b><br />
            <span style="color: #D10043;"><b><%# DataBinder.Eval(Container.DataItem, "Price")%></b></span><br/>
<%--            <li>Категория: <a href="Catalog.aspx?catId=<%# DataBinder.Eval(Container.DataItem, "Category.Id")%>"><%# DataBinder.Eval(Container.DataItem, "Category.Name")%></a></li>--%>
           <span style="font-size: small">
           <asp:Repeater runat="server" ID="rpValues" DataSource='<%# DataBinder.Eval(Container.DataItem, "SizeValues")%>'>
            <HeaderTemplate>Размер: </HeaderTemplate>
            <ItemTemplate><%# DataBinder.Eval(Container.DataItem, "Value")%></ItemTemplate>
            <SeparatorTemplate>, </SeparatorTemplate>
            </asp:Repeater>
            </span>
<%--             <a href='Product.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>' class="default-button ui-corner-all">Подробнее</a>--%>
            <asp:Literal runat="server" id="ltInvisible" Visible="false"><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span></asp:Literal>
            
            </div>
            </div>
</ItemTemplate>

<FooterTemplate>
</div>
<div class="clear"></div>
</FooterTemplate>
</asp:Repeater>